﻿using System;


namespace advadev.CanOpen
{

    /// <summary>
    /// Represents a service timer time frame started event argument
    /// </summary>
    public class ServiceTimerTimeFrameStartedEventArgs
    {

        /// <summary>
        /// Initializes a new instance of the
        /// ServiceTimerTimeFrameStartedEventArgs class by the given parameter
        /// </summary>
        /// <param name="frameStartTimeUtc">
        /// UTC frame start time
        /// </param>
        /// <param name="frameSize">
        /// Frame size
        /// </param>
        public ServiceTimerTimeFrameStartedEventArgs(DateTime frameStartTimeUtc, TimeSpan frameSize)
        {
            FrameStartTimeUtc = frameStartTimeUtc;
            FrameSize = frameSize;
        }

        /// <summary>
        /// Gets the UTC frame start time
        /// </summary>
        public DateTime FrameStartTimeUtc
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the frame size
        /// </summary>
        public TimeSpan FrameSize
        {
            get;
            private set;
        }

    }

}
